---
--类名: FadeWordsEvent.lua
--创建日期: 2016-8-29
--创建人: 陈小虎
--功能描述: 屏幕渐变字事件
--修改内容:
--修改日期:   
--修改人:     
--修改备注: 
--
local Event = import(".Event")

local FadeWordsEvent = class("FadeWordsEvent",function()
    return Event.new()
end)

function FadeWordsEvent:ctor(params)
	self:setEventName(params.event)

	self.mWords = params.words or ""
	self.mFontSize = params.fontSize or 20
	self.mDelayTime = params.delayTime or 0
	self.mFadeTime = params.fadeTime or 0
	self.mLineWidth = params.lineWidth or display.width
	self.mOverDelayTime = params.overDelayTime or 0
	self.mColor = params.color or cc.c4b(255,255,255,255)
	self.mSy = params.sy
	self.mNextTime = params.nextTime or (self.mDelayTime + self.mFadeTime + self.mOverDelayTime)
	self.mShowType = params.showType or 0 
end

return FadeWordsEvent